package com.pengpeng.flash;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 用户登录名称 pengpeng@1917078092890569.onaliyun.com
 * AccessKey ID LTAI5tAa3pq5wsswBm9zCWJo
 * AccessKey Secret ayKT2Jzp8ns2XEgJb8cRPzxaS7NlN5
 */
@Slf4j
@SpringBootApplication
@ServletComponentScan  //扫描原生Servlet组件的注解
@MapperScan("com/pengpeng/flash/mapper")  //扫描所有mapper接口，把他添加到容器中并创建它的动态实现类
@EnableTransactionManagement  //开启事务注解的支持
public class FlashApplication {
    public static void main(String[] args) {
        SpringApplication.run(FlashApplication.class,args);
        log.info("闪送外卖项目启动成功...");
    }

}
